/*
 * Carta.h
 * Created on: 22/09/2011
 * Author: Junior
 */

#ifndef CARTA_H_
#define CARTA_H_

#include <FMedia.h>
#include <FBase.h>
#include <FUi.h>

#define ESPADAS 0
#define COPAS 1
#define PAUS 2
#define OUROS 3

#define DOIS 0
#define TRES 1
#define QUATRO 2
#define CINCO 3
#define SEIS 4
#define SETE 5
#define OITO 6
#define NOVE 7
#define DEZ 8
#define VALETE 9
#define DAMA 10
#define REI 11
#define AS 12

using namespace Osp::Base;

class Carta: public Object{
public:
	Carta();
	Carta(int numero, int naipe);

	virtual ~Carta();

	String ToString();

	int GetNumero();
	int GetNaipe();
	int naipe;
	int numero;

	bool IsMesmoNaipe(Carta* c);
	bool IsMesmoNumero(Carta* c);
	bool IsAntes(Carta* c);
	bool IsDepois(Carta* c);
	bool ValeMais(Carta* c);
	bool Equals(Carta* c);

private:
	String nome;
};

#endif /* CARTA_H_ */
